package com.yc.cloud.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.yc.cloud.common.orm.BaseEntity;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 算法模型版本表
 * </p>
 *
 * @author kinggu
 * @since 2025-07-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("alg_model_version")
public class AlgModelVersion extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 所属模型ID
     */
    @TableField("model_id")
    private Long modelId;

    /**
     * 版本号
     */
    @TableField("model_version")
    private String modelVersion;

    /**
     * 发布状态：0->未发布，1->已发布
     */
    @TableField("publish_status")
    private Integer publishStatus;

    /**
     * 更新内容
     */
    @TableField("release_notes")
    private String releaseNotes;

    /**
     * 模型文件ID, 关联 sys_file 表
     */
    @TableField("file_id")
    private Long fileId;

    /**
     * 逻辑删除标志 0-未删除 1-已删除
     */
    @TableField("is_deleted")
    private Boolean deleted;

    public static final String ModelId = "model_id";
    public static final String ModelVersion = "model_version";
    public static final String PublishStatus = "publish_status";
    public static final String ReleaseNotes = "release_notes";
    public static final String FileId = "file_id";
    public static final String Deleted = "is_deleted";

} 